package org.hmh.leetcode.hashtable;

import java.util.HashSet;

public class code217_easy {
    static class Solution {
        public boolean containsDuplicate(int[] nums) {
            HashSet<Integer> set = new HashSet<>();
            for(int num:nums){
                if (set.contains(num)) {
                    return false;
                }
                set.add(num);
            }
            return true;
        }
    }
    public static void main(String[] args){

    }
}
